package com.qf.web.controller;/*
*王浩政 
*
2022/8/18
20:36
*小米商城
*/
 import javax.jws.WebService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;


@WebServlet("/OrderServlet")
public class OrderServlet extends BaseServlet {
//    @Override
//    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//
//        String methodName=req.getParameter("method");
//             //反射 类对象
//             try {
//
//        Method method = this.getClass().getMethod(methodName, HttpServletRequest.class, HttpServletResponse.class);
//        if(method!=null){
//            method.invoke(this,req,resp);
//        }
//    } catch (Exception e) {
//        e.printStackTrace();
//    }
//}
//
//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        this.doGet(req,resp);
//    }

    public String addOrder(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException{
        System.out.println("添加订单");
        return null;
    }


}
